﻿// --------------
// 作者:Vitity
// --------------

namespace NICWebApi.Extensions.RESTfulResult.Internal;

/// <summary>
/// RESTful 风格结果集
/// </summary>
/// <typeparam name="T">结果集的数据类型</typeparam>
public class RESTfulResult<T>
{
    /// <summary>
    /// 状态码
    /// </summary>
    public int? StatusCode { get; set; }

    /// <summary>
    /// 数据
    /// </summary>
    public T Data { get; set; }

    /// <summary>
    /// 执行成功
    /// </summary>
    public bool Succeeded { get; set; }

    /// <summary>
    /// 错误信息
    /// </summary>
    public object Errors { get; set; }

    /// <summary>
    /// 时间戳
    /// </summary>
    public long Timestamp { get; set; }
}